package com.slipper.bpmn.parser.support;

import com.slipper.bpmn.parser.IParser;
import org.dom4j.Element;

import com.slipper.bpmn.model.Line;

public class LineParser implements IParser<Line> {
    @Override
    public Line parser(Element element) {
        Line line = new Line();
        line.setSourceRef(element.attributeValue("sourceRef"));
        line.setTargetRef(element.attributeValue("targetRef"));
        line.setRemark(element.attributeValue("remark"));
        return parser(line, element);
    }
}
